import {ref, Ref, watch} from 'vue'

export const useConter = () => {

    const state = ref<number>(123)

    const add = () => {
        state.value++
    }

    return {state, add}

}

export const useTitle = (title: string) => {
    const titleRef = ref<string>(title)
    document.title = titleRef.value
 

    return { titleRef }

}